home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / GCC 1.37.1r14 / usr / gcc-1.37.1r14 / non-obj files / gcc-1.37.rsrc / gcc-1.37.rsrc.rsrc / TEXT_405.txt < prev    next >
Encoding:
Text File  |  1993-11-29  |  1.6 KB  |  37 lines

  1. Linker
  2.  
  3. The linker is used to merge object modules and/or library code
  4. to make a finished application. This version of the linker also
  5. merges the run-time relocating loader with your application
  6. in order to make a stand-alone 32-bit executable.
  7.  
  8. Unlike other linker products there is no segmentation concept,
  9. which is either a good or a bad thing depending on your point 
  10. of view.
  11.  
  12. If your application uses resources (most do), these will have to
  13. be manually merged in afterwards using ResEdit (another free
  14. program from Apple).
  15.  
  16. To invoke the linker open all the object browser windows that you
  17. need, and select the GCC/Link menu option or the GCC/Link(partial)
  18. menu option. In either case you must have all the libraries you need 
  19. open to avoid errors. Typically this will include the 32 bit multiply
  20. divide library (gcc-1.37-lib.o) and any libraries of traps needed.
  21.  
  22. There is no smart-linking concept in this demo, so a program that
  23. uses any mac trap glue code must load the entire library.
  24.  
  25. In the link/partial case the output is another object module (linker.o)
  26. which you can inspect with the object browser, in the link (default)
  27. case the output is an application with signature '????' and a default
  28. size as given by the 'loader' resource file. This is currently 2MB
  29. but could easily be changed.
  30.  
  31. You can execute the new program from the finder. If you need to
  32. debug you can invoke the Debugger() function as the first line
  33. of your main routine. Only MacsBug is supported. Function names
  34. are carried through into MacsBug but data segment names are not.
  35. If you do not have MacsBug installed, your machine will crash if
  36. you invoke Debugger().
  37.